package com.sbr.seb.wicket.page;

import java.awt.Color;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.data.general.DefaultPieDataset;

import com.sbr.seb.wicket.element.JFreeChartImage;

/**
 * Homepage
 */
public class StatsLivraisons extends BasePage {

    public StatsLivraisons() {
    	super();
    	DefaultPieDataset d = new DefaultPieDataset();
		d.setValue("JavaWorld", new Integer(75));
		d.setValue("Other", new Integer(25));
		JFreeChart chart = ChartFactory.createPieChart("", d,
                 false,		// Show legend  
                 true,		// Show tooltips
                 true);		// Show urls
        chart.setBackgroundPaint(Color.white);
        chart.setBorderVisible(false);
		add(new JFreeChartImage("image", chart, 300, 300));
    	
    }
}
